(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

eq(0, 0) → true
eq(0, s(Y)) → false
eq(s(X), 0) → false
eq(s(X), s(Y)) → eq(X, Y)
le(0, Y) → true
le(s(X), 0) → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0, nil)) → 0
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Rewrite Strategy: INNERMOST

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

S is empty.
Rewrite Strategy: INNERMOST

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
eq, le, min, replace, selsort

They will be analysed ascendingly in the following order:
eq < replace
eq < selsort
le < min
min < selsort
replace < selsort

(6) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
eq, le, min, replace, selsort

They will be analysed ascendingly in the following order:
eq < replace
eq < selsort
le < min
min < selsort
replace < selsort

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Induction Base:
eq(gen_0':s4_0(0), gen_0':s4_0(0)) →RΩ(1)
true

Induction Step:
eq(gen_0':s4_0(+(n7_0, 1)), gen_0':s4_0(+(n7_0, 1))) →RΩ(1)
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) →IH
true

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
le, min, replace, selsort

They will be analysed ascendingly in the following order:
le < min
min < selsort
replace < selsort

(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)

Induction Base:
le(gen_0':s4_0(0), gen_0':s4_0(0)) →RΩ(1)
true

Induction Step:
le(gen_0':s4_0(+(n606_0, 1)), gen_0':s4_0(+(n606_0, 1))) →RΩ(1)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) →IH
true

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(11) Complex Obligation (BEST)

(12) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
min, replace, selsort

They will be analysed ascendingly in the following order:
min < selsort
replace < selsort

(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)

Induction Base:
min(gen_nil:cons5_0(+(1, 0))) →RΩ(1)
0'

Induction Step:
min(gen_nil:cons5_0(+(1, +(n977_0, 1)))) →RΩ(1)
ifmin(le(0', 0'), cons(0', cons(0', gen_nil:cons5_0(n977_0)))) →LΩ(1)
ifmin(true, cons(0', cons(0', gen_nil:cons5_0(n977_0)))) →RΩ(1)
min(cons(0', gen_nil:cons5_0(n977_0))) →IH
gen_0':s4_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(14) Complex Obligation (BEST)

(15) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
replace, selsort

They will be analysed ascendingly in the following order:
replace < selsort

(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol replace.

(17) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

The following defined symbols remain to be analysed:
selsort

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
selsort(gen_nil:cons5_0(n1596_0)) → gen_nil:cons5_0(n1596_0), rt ∈ Ω(1 + n15960 + n159602)

Induction Base:
selsort(gen_nil:cons5_0(0)) →RΩ(1)
nil

Induction Step:
selsort(gen_nil:cons5_0(+(n1596_0, 1))) →RΩ(1)
ifselsort(eq(0', min(cons(0', gen_nil:cons5_0(n1596_0)))), cons(0', gen_nil:cons5_0(n1596_0))) →LΩ(1 + n15960)
ifselsort(eq(0', gen_0':s4_0(0)), cons(0', gen_nil:cons5_0(n1596_0))) →LΩ(1)
ifselsort(true, cons(0', gen_nil:cons5_0(n1596_0))) →RΩ(1)
cons(0', selsort(gen_nil:cons5_0(n1596_0))) →IH
cons(0', gen_nil:cons5_0(c1597_0))

We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).

(19) Complex Obligation (BEST)

(20) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)
selsort(gen_nil:cons5_0(n1596_0)) → gen_nil:cons5_0(n1596_0), rt ∈ Ω(1 + n15960 + n159602)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(21) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
selsort(gen_nil:cons5_0(n1596_0)) → gen_nil:cons5_0(n1596_0), rt ∈ Ω(1 + n15960 + n159602)

(22) BOUNDS(n^2, INF)

(23) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)
selsort(gen_nil:cons5_0(n1596_0)) → gen_nil:cons5_0(n1596_0), rt ∈ Ω(1 + n15960 + n159602)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(24) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
selsort(gen_nil:cons5_0(n1596_0)) → gen_nil:cons5_0(n1596_0), rt ∈ Ω(1 + n15960 + n159602)

(25) BOUNDS(n^2, INF)

(26) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)
min(gen_nil:cons5_0(+(1, n977_0))) → gen_0':s4_0(0), rt ∈ Ω(1 + n9770)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(27) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(28) BOUNDS(n^1, INF)

(29) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)
le(gen_0':s4_0(n606_0), gen_0':s4_0(n606_0)) → true, rt ∈ Ω(1 + n6060)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(30) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(31) BOUNDS(n^1, INF)

(32) Obligation:

Innermost TRS:
Rules:
eq(0', 0') → true
eq(0', s(Y)) → false
eq(s(X), 0') → false
eq(s(X), s(Y)) → eq(X, Y)
le(0', Y) → true
le(s(X), 0') → false
le(s(X), s(Y)) → le(X, Y)
min(cons(0', nil)) → 0'
min(cons(s(N), nil)) → s(N)
min(cons(N, cons(M, L))) → ifmin(le(N, M), cons(N, cons(M, L)))
ifmin(true, cons(N, cons(M, L))) → min(cons(N, L))
ifmin(false, cons(N, cons(M, L))) → min(cons(M, L))
replace(N, M, nil) → nil
replace(N, M, cons(K, L)) → ifrepl(eq(N, K), N, M, cons(K, L))
ifrepl(true, N, M, cons(K, L)) → cons(M, L)
ifrepl(false, N, M, cons(K, L)) → cons(K, replace(N, M, L))
selsort(nil) → nil
selsort(cons(N, L)) → ifselsort(eq(N, min(cons(N, L))), cons(N, L))
ifselsort(true, cons(N, L)) → cons(N, selsort(L))
ifselsort(false, cons(N, L)) → cons(min(cons(N, L)), selsort(replace(min(cons(N, L)), N, L)))

Types:
eq :: 0':s → 0':s → true:false
0' :: 0':s
true :: true:false
s :: 0':s → 0':s
false :: true:false
le :: 0':s → 0':s → true:false
min :: nil:cons → 0':s
cons :: 0':s → nil:cons → nil:cons
nil :: nil:cons
ifmin :: true:false → nil:cons → 0':s
replace :: 0':s → 0':s → nil:cons → nil:cons
ifrepl :: true:false → 0':s → 0':s → nil:cons → nil:cons
selsort :: nil:cons → nil:cons
ifselsort :: true:false → nil:cons → nil:cons
hole_true:false1_0 :: true:false
hole_0':s2_0 :: 0':s
hole_nil:cons3_0 :: nil:cons
gen_0':s4_0 :: Nat → 0':s
gen_nil:cons5_0 :: Nat → nil:cons

Lemmas:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

Generator Equations:
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))
gen_nil:cons5_0(0) ⇔ nil
gen_nil:cons5_0(+(x, 1)) ⇔ cons(0', gen_nil:cons5_0(x))

No more defined symbols left to analyse.

(33) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
eq(gen_0':s4_0(n7_0), gen_0':s4_0(n7_0)) → true, rt ∈ Ω(1 + n70)

(34) BOUNDS(n^1, INF)